package com.qiantu.phone.ui.activity;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.view.View;

import com.qiantu.phone.R;
import com.qiantu.phone.aop.Log;
import com.qiantu.phone.app.AppActivity;
import com.qiantu.phone.widget.EditTextLayout;

/**
 * time   : 2021/12/22
 */
public final class ServiceCenterActivity extends AppActivity {

    @Log
    public static void start(Context context) {
        Intent intent = new Intent(context, ServiceCenterActivity.class);
        if (!(context instanceof Activity)) {
            intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
        }
        context.startActivity(intent);
    }

    private EditTextLayout editSearch;

    @Override
    protected int getLayoutId() {
        return R.layout.activity_service_center;
    }

    @Override
    protected void initView() {
        editSearch = findViewById(R.id.edit_search);
        setOnClickListener(R.id.btn_app_user_manual, R.id.btn_hardware_product_manual, R.id.btn_question1, R.id.btn_question2, R.id.btn_question3, R.id.btn_feedback);
    }

    @Override
    protected void initData() {

    }

    @Override
    public void onClick(View view) {
        switch (view.getId()){
            case R.id.btn_app_user_manual:

                break;
            case R.id.btn_hardware_product_manual:

                break;
            case R.id.btn_question1:

                break;
            case R.id.btn_question2:

                break;
            case R.id.btn_question3:

                break;
            case R.id.btn_feedback:
                FeedbackActivity.start(this);
                break;
        }
    }
}